home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3043 < prev    next >
Encoding:
Text File  |  1996-08-05  |  869 b   |  27 lines

  1. Path: sdrc.com!thor!scjones
  2. From: larry.jones@sdrc.com (Larry Jones)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is it possible to #include <#defined or -D 'ed macro>?
  5. Date: 25 Jan 1996 16:22:59 GMT
  6. Organization: SDRC Engineering Services
  7. Distribution: world
  8. Message-ID: <4e8ap3$901@info1.sdrc.com>
  9. References: <5rbuntgqp0.fsf@ritz.mordor.com>
  10. NNTP-Posting-Host: thor.sdrc.com
  11. Originator: scjones@thor
  12.  
  13. In article <5rbuntgqp0.fsf@ritz.mordor.com>, benjamin@ritz.mordor.com (Joseph Thomas) writes:
  14. > Does anyone know a way of having an include statement that can include
  15. > a file, based on a -D <MACRO_NAME> flag passed to the compiler, to
  16.  
  17. #include SOURCE
  18.  
  19. cc -D SOURCE='<source_a.h>'
  20. cc -D SOURCE='<source_b.h>'
  21.  
  22. should work on any ANSI conforming compiler.
  23. ----
  24. Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
  25. larry.jones@sdrc.com
  26. Hmph. -- Calvin
  27.